package com.alog.storage.utils;

import android.app.Activity;
import android.widget.ImageView;
import com.alog.storage.R;
import com.bumptech.glide.Glide;

/**
 * 图片加载工具类
 */
public class ImageLoadUtil {

    /**
     * 图片加载并显示到ImageView上
     */
    public static void showImage(Activity activity, String url, ImageView iv) {
        Glide.with(activity).load(url).placeholder(R.mipmap.user_header_default).error(R.mipmap.user_header_default).into(iv);
    }

}
